"======================================================================
"
" init-keymaps.vim - 基础键盘映射
"
"======================================================================

let mapleader=" " 

"----------------------------------------------------------------------
" 文件操作 
"----------------------------------------------------------------------
" 保存文件
nmap <c-s> :w<CR>

"----------------------------------------------------------------------
" 窗口、buffer、终端操作 
"----------------------------------------------------------------------
" 执行系统命令
nmap <C-p> :! 
" 关闭窗口
nmap <C-q> :q<CR>
" 关闭buffer
nmap <silent><C-x> :bd!<CR>
" 上一个buffer
nmap <silent>- :bp<CR>
" 下一个buffer
nmap <silent>= :bn<CR>

"----------------------------------------------------------------------
" 终端与命令 
"----------------------------------------------------------------------

"----------------------------------------------------------------------
" 代码操作 
"----------------------------------------------------------------------
" 取消高亮
nmap <Leader>c :noh<CR>
" 删除所有行尾空格


